package com.yc.Di.test.bean2;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan
public class App2_autowired {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(App2_autowired.class);
        OrderBiz ob = context.getBean(OrderBiz.class);
        ob.makeOrder();
    }
}
